/*
 * ipassbook 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.ui.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import com.wateray.ipassbook.ui.view.contentPanel.PageContainer;
import com.wateray.ipassbook.ui.view.contentPanel.PassbookPage;
import com.wateray.ipassbook.util.ImageManager;
import com.wateray.ipassbook.util.LanguageLoader;

/**
 * @author wateray
 * @create 2009-5-21
 */
public class ShowPassbookPageAction extends AbstractAction {


	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	public ShowPassbookPageAction(){
		super(LanguageLoader.getString("Passbook_Page"), ImageManager.getImageIconByShortName("gimp.png"));
		putValue(SHORT_DESCRIPTION, LanguageLoader.getString("Passbook_Page"));
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		PageContainer.getInstance().addPage(PassbookPage.getInstance(), PassbookPage.getInstance().getPageId());
	}

}
